package com.ha.system.track.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ha.system.track.mapper.HaOrderTrackMapper;
import com.ha.system.track.domain.HaOrderTrack;
import com.ha.system.track.service.IHaOrderTrackService;
import com.ha.common.core.text.Convert;

/**
 * 订单信息追踪Service业务层处理
 * 
 * @author admin
 * @date 2021-03-16
 */
@Service
public class HaOrderTrackServiceImpl implements IHaOrderTrackService 
{
    @Autowired
    private HaOrderTrackMapper haOrderTrackMapper;

    /**
     * 查询订单信息追踪
     * 
     * @param id 订单信息追踪ID
     * @return 订单信息追踪
     */
    @Override
    public HaOrderTrack selectHaOrderTrackById(Long id)
    {
        return haOrderTrackMapper.selectHaOrderTrackById(id);
    }

    /**
     * 查询订单信息追踪列表
     * 
     * @param haOrderTrack 订单信息追踪
     * @return 订单信息追踪
     */
    @Override
    public List<HaOrderTrack> selectHaOrderTrackList(HaOrderTrack haOrderTrack)
    {
        return haOrderTrackMapper.selectHaOrderTrackList(haOrderTrack);
    }

    /**
     * 新增订单信息追踪
     * 
     * @param haOrderTrack 订单信息追踪
     * @return 结果
     */
    @Override
    public int insertHaOrderTrack(HaOrderTrack haOrderTrack)
    {
        return haOrderTrackMapper.insertHaOrderTrack(haOrderTrack);
    }

    /**
     * 修改订单信息追踪
     * 
     * @param haOrderTrack 订单信息追踪
     * @return 结果
     */
    @Override
    public int updateHaOrderTrack(HaOrderTrack haOrderTrack)
    {
        return haOrderTrackMapper.updateHaOrderTrack(haOrderTrack);
    }

    /**
     * 删除订单信息追踪对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteHaOrderTrackByIds(String ids)
    {
        return haOrderTrackMapper.deleteHaOrderTrackByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除订单信息追踪信息
     * 
     * @param id 订单信息追踪ID
     * @return 结果
     */
    @Override
    public int deleteHaOrderTrackById(Long id)
    {
        return haOrderTrackMapper.deleteHaOrderTrackById(id);
    }
}
